// 解密
const NodeRSA = require('node-rsa');
module.exports = {
    getDecrypt(str) {
        const key = `
        -----BEGIN PRIVATE KEY-----
MIIBVgIBADANBgkqhkiG9w0BAQEFAASCAUAwggE8AgEAAkEA5QwarsVuAZJnRHHq
a3+rpGxfik7WXc1wtnAlaz2XIJafWtBbX4cfnduvuRi91jMTZAOB8+ZobVeyG1sF
LwhvzQIDAQABAkEA3xTY8BvONq228ozYunaQYAZFT1nVo2qyOp4jc7168fqpxeJU
08/sg+zOTF+lJqLe1RtinRDn4Pie8qj9R1tHaQIhAPhrMyVx5MI7FLUB8ZaDs6FM
FKKQSl0JCqBbwbUCpQSfAiEA7AmQB188q1qCkJKh1Vfnc7rcaq1iKLGyVrHHRofH
6BMCIQCa/3ATLgQYuHpMEiFl01jyDCFX6QWtFOYfdgDf6v2BawIgCoF+dKWLiMD1
kMPGCj3oYmFN0D25YcBPBMbS7NO8VRsCIQCtt7Ato9GcUGX52DXx/cXalel6RRRD
0UJcn/nx9/iIvQ==
-----END PRIVATE KEY-----`;
        const rsa = new NodeRSA(key, 'pkcs8-private-pem', { encryptionScheme: 'pkcs1' })
        return rsa.decrypt(str, 'utf8')
    }
}